package com.tsvetanv.simpleformcontroller.example01.person.mvc.service;

import com.tsvetanv.simpleformcontroller.example01.person.dao.PersonDao;
import com.tsvetanv.simpleformcontroller.example01.person.mvc.model.Person;

public class PersonServiceImpl implements PersonService {
	protected PersonDao dao;

	// --- Constructors, Getters/Setters ---------------------------------------
	public PersonDao getDao() {
		return dao;
	}

	public void setDao(PersonDao dao) {
		this.dao = dao;
	}

	public void savePerson(Person person) {
		dao.save(person);

	}

	public void deletePerson(Person person) {
		dao.delete(person);

	}

	// --- Methods -------------------------------------------------------------

}
